package com.kingsoft.demo.rmi;
import java.rmi.Naming;


/**
 * RMI客户端
 * @author kbl
 *
 */
public class HelloClient {
	
	
	public static void main(String[] args) {
		
		try{
			//HelloInterface hello = (HelloInterface) Naming.lookup("Hello"); 
			//System.out.println(hello);
			HelloInterface hello2 = (HelloInterface) Naming.lookup("//192.168.1.185:1099/Hello"); 
			System.out.println(hello2);
			//System.out.println(hello.say());    
		}catch (Exception e) {
			e.printStackTrace();
		}
		    
		
		
	}

}
